// BrowserForFolder.h: interface for the BrowserForFolder class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BROWSERFORFOLDER_H__AB72223A_FD9E_4674_B16F_A82C25AF9F73__INCLUDED_)
#define AFX_BROWSERFORFOLDER_H__AB72223A_FD9E_4674_B16F_A82C25AF9F73__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class DllExport BrowserForFolder  
{
public:
	BrowserForFolder(CWnd* pParent, const CString& strDialogName, const CString& strStartPos);
	virtual ~BrowserForFolder();

public:
	const CString& GetPath() const{
		return m_strPath;
	}

	BOOL DoModal();

private:
	static int CALLBACK BrowseCallbackProc(HWND hwnd,UINT uMsg,LPARAM lParam,LPARAM lpData);
	CString GetStartPos();

private:
	CString m_strStartPos;
	CString m_strPath;
	CString m_strDialogName;
	HWND m_hWndEdit;
	CWnd* m_pParent;
};

#endif // !defined(AFX_BROWSERFORFOLDER_H__AB72223A_FD9E_4674_B16F_A82C25AF9F73__INCLUDED_)
